package com.usian.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @projectName: day05_mohongwei_parent
 * @package: com.jiyun.common.dto
 * @className: MemberDTO
 * @author: 莫洪维
 * @email: 1204315800@qq.com
 * @description: TODO
 * @date: 2023/8/11 11:24
 */
@Data
@ToString
public class MemberDTO {
    private Integer pageNum = 1;
    private Integer pageSize = 2;
    private String memberNameOrNo;
    private String memberStatus;
    private Long memberRoleId;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date min;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date max;
}
